package com.neutech.variable;

/**
 * 自增（减）运算
 *
 * @author Neuedu-远哥
 * @version 1.0
 * @date 2021/11/9 15:09
 */
public class Demo08 {
    public static void main(String[] args) {
        int x = 1;
        // 先赋值，再增1
//        int y = x++;
        x = x++;
        // 先增1，再赋值
//        x = ++x;
        // 1
        System.out.println("x:" + x);
//        System.out.println("y:" + y);

        int i = 1;
        int j = 1;
        int k = 1;
        System.out.println(j++ + i++ + j + i++ + k-- - k + i-- + i);
    }
}
